var request = require('../request.js')

module.exports = {
	// 获取图片验证码
	getCaptcha: function(e) {
		return request.getRequest("/captcha", e);
	},
	// 获取短信验证码
	getVerifyCode: function(e) {
		return request.getRequest("/system/booking/sendSms/"+ e);
	},
    // 微信登录
	miniProgramLogin: function(e) {
		return request.getRequest("/login/miniProgramLogin?code="+e);
	},
	// 登录
	login: function(e) {
		return request.autoRequest("/login", e);
	},
	
	// 小程序登录用code换取session_key
	getOpenid: function(e){
		return request.getRequest("/getOpenid/" + e);
	},
	
	// 小程序微信登录获取手机号
	getPhoneNumber:function(e){
		return request.autoRequest("/phoneNumber",e)
	},
	
	// 列表测试
	list: function(e) {
		return request.getRequest("/api/ocb/ocbHotel", e);
	},
	systemInfoCode: function(e){
		return request.getRequest("/system/info/apiByCode/" + e);
	},
	submitBooking: function(e){
		return request.autoRequest("/system/booking" , e);
	},

    
}
